export function addZero(v) {
    return Number(v) < 10  ? '0'+Number(v) : v
}

export function getDate(){
    let date = new Date()
    let y = date.getFullYear();
    let m = addZero(date.getMonth() + 1);
    let d = addZero(date.getDate());
    let h = addZero(date.getHours());
    let M = addZero(date.getMinutes());
    let s = addZero(date.getSeconds());
    return y+":"+m+":"+d + ":" + h + ":" + M + ":" + s;
}